
package demo.osgi.dictquery.remote;

import demo.osgi.dictquery.QueryService;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class RemoteDictQueryServiceImpl
    implements QueryService
{

    public RemoteDictQueryServiceImpl()
    {
    }

    public String queryWord(String word)
    {
        return (String)dict.get(word);
    }

    private static final Map dict;

    static 
    {
        dict = new ConcurrentHashMap();
        dict.put("test", "test\u82F1\u97F3\uFF1A[test]\u7F8E\u97F3\uFF1A[t\u025Bst]");
        dict.put("temp", "temp\u82F1\u97F3\uFF1A['temp]\u7F8E\u97F3\uFF1A['t\u025Bmp]");
    }
}
